'use strict';

function spilt_to_zero(number, interval) {
  number*=10;
  interval*=10;
  let collection=[];
  collection.push(number/10);
  let t=number;
  for(;t>0;)
    {
      t=t-interval;
      collection.push(t/10);
    }
  return collection;
}

module.exports = spilt_to_zero;
